www.mxdraw.com
内容索引主面
前一个向上下一个
IMxDrawEntity::Rotate 方法

旋转一个对象

IDL
[helpstring("method Rotate")]
HRESULT Rotate([in] IMxDrawPoint* basePoint, [in] DOUBLE dRotationAngle);
参数 
说明 
[in] IMxDrawPoint* basePoint 
旋转基点 
[in] DOUBLE dRotationAngle 
旋转角度 

例如: C#使用例子

        MxDrawDatabase database = (MxDrawDatabase)axMxDrawX1.GetDatabase();
        Int32 id = axMxDrawX1.DrawLine(10, 10, 20, 10);
        MxDrawEntity pEnt = (MxDrawEntity)database.ObjectIdToObject(id);
        MxDrawPoint point = new MxDrawPoint();
        point.x = 10;
        point.y = 10;

        pEnt.Rotate(point, 45 * 3.14159265 / 180.0);
        axMxDrawX1.ZoomAll();
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!